
var express = require('express')

var app = express()

app.use('/view', express.static('./view/'))

app.engine('xxx', require('express-art-template'))
app.set('view options', {
    debug: process.env.NODE_ENV !== 'production'
})

app.get('/', function (req, res) {
    // res.render('index.art', {
    //     user: {
    //         name: 'aui',
    //         tags: ['art', 'template', 'nodejs']
    //     }
    // })
    res.render('404.xxx')
})

app.listen(3000, function () {
    console.log('app is running at port 3000.');
})
